package org.caiotte.query;


import lombok.Data;

@Data
public class DepartmentQuery {

    private Integer pageSize = 5;
    private Integer currentPage = 1;
    private String keyword;

    public DepartmentQuery(Integer pageSize, Integer currentPage) {
        this.pageSize = pageSize;
        this.currentPage = currentPage;
    }

    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }


}
